package com.example.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 区块表(tb_block)
 */
@Data
@TableName(value = "tb_block", autoResultMap = true)
public class Block {

    /** 区块高度 */
    @TableId
    private Long blockNumber;

    /** 当前区块哈希 */
    private String blockHash;

    /** 父区块哈希 */
    private String parentBlockHash;

    public Long getBlockNumber() {
        return blockNumber;
    }

    public void setBlockNumber(Long blockNumber) {
        this.blockNumber = blockNumber;
    }

    public String getBlockHash() {
        return blockHash;
    }

    public void setBlockHash(String blockHash) {
        this.blockHash = blockHash;
    }

    public String getParentBlockHash() {
        return parentBlockHash;
    }

    public void setParentBlockHash(String parentBlockHash) {
        this.parentBlockHash = parentBlockHash;
    }
}
